package com.cicc.springboot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cicc.springboot.common.dto.R;
import com.cicc.springboot.entity.MaterialZmaraEntity;
import com.cicc.springboot.model.MaterialQuery;

/**
 * 文件上传的接口
 *
 * @InterfaceName MaterialInformationService
 * @Description TODO
 * @Author 转轮王
 * @Date 2024/09/27 11:04
 * @Version 1.0
 */

public interface MaterialInformationService extends IService<MaterialZmaraEntity> {
    //分页查询物料信息
    R<Page<MaterialZmaraEntity>> queryMaterialsPage(int currentPage, int pageSize, String materialName, String materialNumber, String materialType, String materialStatus);

    //根据id查看物料详情
    R<MaterialZmaraEntity> getMaterialById(Long id);

    //提交新增或修改物料信息
    R<MaterialZmaraEntity> saveMaterial(MaterialQuery materialQuery);

    //根据id删除物料信息
    R<Integer> deleteMaterial(Long MaterialId);

    //修改物料信息的状态码
    R<String> updateMaterialState(Long MaterialId);


}


